<ion-header [translucent]="true">
	<ion-toolbar>
		<ion-buttons slot="start">
			<ion-back-button text="返回" defaultHref="/"></ion-back-button>
		</ion-buttons>
		<ion-title>
			{{ folder?.path }}
		</ion-title>
		<ion-buttons slot="end">
			<ion-button color="primary" (click)="openMenu($event)" title="设置">
				<ion-icon slot="icon-only" name="ellipsis-horizontal"></ion-icon>
			</ion-button>
		</ion-buttons>
	</ion-toolbar>
</ion-header>

<ion-content [fullscreen]="true">
	<ion-list>
		<app-file *ngFor="let f of folder?.files" [file]="f"></app-file>
	</ion-list>
	<ion-infinite-scroll threshold="100px" (ionInfinite)="loadData($event)">
		<ion-infinite-scroll-content
      loadingSpinner="bubbles"
      loadingText="加载中..."></ion-infinite-scroll-content>
	</ion-infinite-scroll>
</ion-content>
